<?php /* Smarty version 2.6.19, created on 2012-12-24 10:37:58
         compiled from vietcad/contactform.tpl.html */ ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/header.tpl.html", 'smarty_include_vars' => array('title' => 'header')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
    	<div class="content">
   			<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/left.tpl.html", 'smarty_include_vars' => array('title' => 'left')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 
        	<div class="cont_right">
           		<div class="main_content">
                	<h2>Thông tin liên hệ</h2>
                    <div class="details">
                          <?php echo ' 
                          <script language="javascript">
                            function CheckFormMail()
                            {
                                    with (document.FormName)
                                    {
                                            if (first_name.value=="")
                                            {
                                                    alert("Mời bạn nhâp họ tên!");
                                                    first_name.focus();
                                                    return false;
                                            }
                                        if (email.value=="")
                                            {
                                                    alert("Mời bạn nhập địa chỉ Email!");
                                                    email.focus();
                                                    return false;
                                            }
                                            else
                                            {
                                                    if(email.value.indexOf("@")<0||email.value.indexOf(".")<0)
                                                    {
                                                            alert("Địa chỉ Email không hợp lệ!");
                                                            email.focus();
                                                            return false;
                                                    }
                                            }
                                    if (title.value=="")
                                            {
                                                    alert("Mời bạn nhập chủ đề");
                                                    title.focus();
                                                    return false;
                                            }
                                    
                                    if (message.value=="")
                                            {
                                                    alert("Mời bạn nhập nội dung");
                                                    message.focus();
                                                    return false;
                                            }
                                    if (code.value=="")
                                            {
                                                    alert("Mời bạn nhập mã xác nhận");
                                                    code.focus();
                                                    return false;
                                            }
                                    }
                                    return true;
                            }
                            </script> 
                          '; ?>

                        <form action="" method="post" name="FormName" target="_parent" onSubmit="return CheckFormMail();">
                            <table border="0" cellpadding="0" cellspacing="0" align="center" style="padding-left:50px;">
                              <tbody>
                                <tr>
                                  <td align="center">
                                  <div class="contactType">
                                <div class="contactInfo">
                                <p>&nbsp;</p>
                              <h3 style="font-size: 18px; font-weight: bold; color:#C03; text-transform:uppercase"><?php if ($this->_tpl_vars['lang'] == 'vn'): ?><?php echo $this->_tpl_vars['siteConfigs']->getProperty('company'); ?>
<?php else: ?><?php echo $this->_tpl_vars['siteConfigs']->getProperty('company_en'); ?>
<?php endif; ?></h3>
                              <p>&nbsp;</p>
                              <div class="inner"> 
                             <div style="width:100%"> 
                             <table style="text-align:left; margin:0 auto" width="80%" cellspacing="0" cellpadding="0" border="0" >
                                <tbody>
                                <?php if ($this->_tpl_vars['error']): ?>
                                <tr>
                                  <td colspan="2"> 
                                            <p style="color:#C00"><?php echo $this->_tpl_vars['error']; ?>
</p>
                                           </td>
                                  
                                </tr>
                               <?php endif; ?>
                                <tr>
                                  <td width="20%"><?php echo $this->_tpl_vars['messages']['address']; ?>
</td>
                                  <td style="width:auto; white-space:nowrap">:<?php if ($this->_tpl_vars['lang'] == 'vn'): ?><?php echo $this->_tpl_vars['siteConfigs']->getProperty('address'); ?>
<?php else: ?><?php echo $this->_tpl_vars['siteConfigs']->getProperty('address_eng'); ?>
<?php endif; ?> </td>
                                </tr>
                                 <tr>
                                  <td><?php echo $this->_tpl_vars['messages']['tel']; ?>
</td>
                                  <td>: <?php echo $this->_tpl_vars['siteConfigs']->getProperty('tel'); ?>
</td>
                                </tr>
                                <tr>
                                  <td>Fax</td>
                                  <td>: <?php echo $this->_tpl_vars['siteConfigs']->getProperty('fax'); ?>
</td>
                                </tr>
                                <tr>
                                  <td>Email</td>
                                  <td>: <a href="<?php echo $this->_tpl_vars['siteConfigs']->getProperty('admin_mail'); ?>
"><?php echo $this->_tpl_vars['siteConfigs']->getProperty('admin_mail'); ?>
</a></td>
                                </tr>
                              </tbody></table>
                              </div>
                              </div>
                        </div>
                      </div>
                                    </td>
                                </tr>
                                <?php if ($this->_tpl_vars['error'] == ''): ?>
                                <tr>
                                  <td>
                                  <p>&nbsp;</p>
                                  <p align="center"><?php echo $this->_tpl_vars['messages']['contacts1']; ?>
<br>
                                      </p></td>
                                </tr>
                                <tr>
                                  <td valign="top"><table class="text_3" align="center" border="0" cellpadding="0" cellspacing="2" width="100%">
                                      <tbody>
                                        <tr valign="top">
                                          <td>&nbsp;</td>
                                          <td>&nbsp;</td>
                                          <td><font size="1"> <?php echo $this->_tpl_vars['messages']['contacts2']; ?>
</font><font color="#CC0000" size="1">(*)</font>  </td>
                                        </tr>
                                        <tr valign="top">
                                          <td width="28%"><div align="right"> <font color="#CC0000">(*)</font> <?php echo $this->_tpl_vars['messages']['fullname']; ?>
</div></td>
                                          <td width="2%">&nbsp;</td>
                                          <td width="70%"><input name="first_name" class="box_input" size="45" value="<?php echo $this->_tpl_vars['full_name']; ?>
"></td>
                                        </tr>
                                       
                                      
                                        <tr valign="top">
                                          <td><div align="right"><?php echo $this->_tpl_vars['messages']['address']; ?>
  </div></td>
                                          <td>&nbsp;</td>
                                          <td><input name="address" class="box_input" size="45" value="<?php echo $this->_tpl_vars['address']; ?>
"></td>
                                        </tr>
                                        <tr valign="top">
                                          <td><div align="right"><?php echo $this->_tpl_vars['messages']['tel']; ?>
 </div></td>
                                          <td>&nbsp;</td>
                                          <td><input name="tel" class="box_input" size="45" value="<?php echo $this->_tpl_vars['tel']; ?>
"></td>
                                        </tr>
                                        
                                        <tr valign="top">
                                          <td><div align="right"> <font color="#CC0000">(*)</font> Email </div></td>
                                          <td>&nbsp;</td>
                                          <td><input name="email" class="box_input" size="45" value="<?php echo $this->_tpl_vars['email']; ?>
"></td>
                                        </tr>
                                        <tr valign="top">
                                          <td><div align="right"><font color="#CC0000">(*)</font> <?php echo $this->_tpl_vars['messages']['title']; ?>
 </div></td>
                                          <td>&nbsp;</td>
                                          <td><input name="title" class="box_input" id="title" size="45" value="<?php echo $this->_tpl_vars['title']; ?>
"></td>
                                        </tr>
                
                                        <tr valign="top">
                                          <td><div align="right"><font color="#CC0000">(*)</font> <?php echo $this->_tpl_vars['messages']['content']; ?>
</div></td>
                                          <td>&nbsp;</td>
                                          <td><textarea name="message" cols="50" rows="8" wrap="VIRTUAL" class="box_area"><?php echo $this->_tpl_vars['message']; ?>
</textarea></td>
                                        </tr>
                                     <tr valign="top">
                                     <td><div align="right"><font color="#CC0000">(*)</font> <?php echo $this->_tpl_vars['messages']['security']; ?>
</div></td>
                                      <td>&nbsp;</td>
                                     <td style="vertical-align:middle">
                                     <input type="text" value="" name="code"  size="10" class="box_input"  id="code" style="float:left; margin-right:15px"/> &nbsp;&nbsp;
                                     <img src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/authimg.php" alt="Authenticate image" height="100%" align="left"/>
                            <?php if ($this->_tpl_vars['listerror'][3]): ?>
                                                        <span class="msg"><?php echo $this->_tpl_vars['listerror'][3]; ?>
</span>
                                        <?php endif; ?>	
                                
                                </td>
                            </tr>
                            
                                        <tr valign="top">
                                          <td height="65">&nbsp;</td>
                                          <td>&nbsp;</td>
                                          <td><input name="B1" class="submitbutton" value="  <?php echo $this->_tpl_vars['messages']['send']; ?>
  " type="submit">
                                            <input name="op" value="contactform" type="hidden">
                                            <input name="lang" value="<?php echo $this->_tpl_vars['lang']; ?>
" type="hidden">
                                            <input name="slug" value="<?php echo $this->_tpl_vars['slug']; ?>
" type="hidden">
                                            &nbsp;
                                            <input name="B2" class="submitbutton" value="  <?php echo $this->_tpl_vars['messages']['reset']; ?>
  " type="reset"></td>
                                        </tr>
                                      </tbody>
                                    </table></td>
                                </tr>
                                <?php endif; ?>
    
                              </tbody>
                            </table>
                             <p class="clear">&nbsp; </p>
                                      <p style="font-size:16px; color:#F00; font-weight:bold"> Bản đồ đường đi</p>
                                     <hr color="#009966" size="1">
                                  		<p>&nbsp;</p>
                                       <p align="center"><a href="http://www.vietbando.com/maps/#fp=10.7366337,106.691732|10.7366337,106.691732;1;1&t=2&st=0&sk=Đường+số+3%2C+KDC+Trung+Sơn%2C+Bình+Hưng%2C+Bình+Chánh&l=16&kv=10.7358698,106.687867" target="_blank"><img alt="map" src="<?php echo $this->_tpl_vars['ROOTPATH']; ?>
/templates/<?php echo $this->_tpl_vars['usertemplate']; ?>
/images/maps.jpg" width="710" border=0 alt="" /></a></p> <p>&nbsp;</p>
                          </form>
                    </div>
                </div>
  			 </div>
   		</div>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['usertemplate'])."/footer.tpl.html", 'smarty_include_vars' => array('title' => 'footer')));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?> 